<?php /*
	EZ-Shop, Starter E-Commerce Platform
    Copyright (C) 2009  David Hinchliffe - FC Software Ltd

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/ ?>
<?php
ob_start();
session_start();
################################################################
#		Database Class
##################################################################
$obj_db = new dbclass();

$settingssql='SELECT * FROM tblmystore';
$settingsresults=$obj_db->select($settingssql);

define('SITENAME',$settingsresults[0]['varstorename']);
define('FROMEMAIL',$settingsresults[0]['varowneremail']);
define('PAGETITLE',$settingsresults[0]['varstorename']);
$pageURL = 'http';
if ($_SERVER['HTTPS'] == 'on') {$pageURL .= 's';}
 $pageURL .= '://';
if ($_SERVER['SERVER_PORT'] != '80') {
  $pageURL .= $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
} else {
  $pageURL .= $_SERVER['SERVER_NAME'];
}
define('WEBSITEURL',$pageURL);


################################################################
# Global Varibles
##################################################################

// for the row per pages
define('ROW_PER_PAGE',5);
//For the inc folders
define('INC','inc/');
//For the Image folder ( For image uplaod and the images put and fetch )
define('Images','images/');
//For the path of the system folder
define('SYSTEM','system/');
define('admin.php','Admin');
?>